<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="/ht/Home/css/bootstrap.flow.min.css" rel="stylesheet" type="text/css"/>
<link href="/ht/Home/css/bootstrap-theme.css" rel="stylesheet" type="text/css"/>
<script src="/ht/Home/javascript/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="/ht/Home/javascript/formdiy.js" type="text/javascript"></script>
<script src ="/ht/js/baiduTemplate.js" type="text/javascript"></script>
<script src ="/HTCommon/HT_Common.nsf/Language_ZN.js" type="text/javascript"></script>
<script src ="/OA6.1/ProjectMgr.nsf/Language_ZN.js" type="text/javascript"></script>
<link href="/ht/css/form.css" media="all" rel="stylesheet" type="text/css"/>
<script src='/ht/js/wf-mini.js' type='text/javascript'></script>
<script src="/ht/DiagProgress/pinyin.js" type='text/javascript'></script>
<style>
.mini-grid-summaryCell{text-align:right;color: red;font-weight: bold;}
.myRowCls { font-size:14px;color:red  }
.myRowClss { font-size:14px;color:black  }
.myRowClsss { background-color : #D0D0D0 }
.errorRow { font-size:14px;color:blue  }
</style>

<script language="JavaScript" type="text/javascript">
/*
	定时检测本文档是否已被修改
*/
var gIsLock=false;
var gLastPerson="";
$(function(){
	if(gIsNewDoc!=1 && gIsEditDoc){
		$("body").everyTime("5s","docLock",function(){
			$.ajax({
				url:"/"+gCommonDB+"/(agtGetSubTimeO)?OpenAgent&id="+gCurDocID+"&db="+gCurDBName,
				cache: false,
				dataType:"text",
				async:false,
				success:function(txt){
					if($.trim(txt)!="" && (mini.formatDate(mini.parseDate($.trim(txt).split("^")[0]),"yyyy-MM-dd HH:mm:ss")>mini.formatDate(mini.parseDate(gServerTime),"yyyy-MM-dd HH:mm:ss"))){
						gIsLock=true;
						gLastPerson=$.trim(txt).split("^")[1];
				
						$.gritter.add({
                    			title:"消息提示",
                   				text: "["+gLastPerson+"]已经对文档进行了修改，请您刷新页面后操作.",
                    			class_name:"coding123",
                    			time: 1000000
                			});
                			$("body").stopTime("docLock");
					}
				}
			});
		});
	}
})
function wfSubmitDoc(){
	if(arguments.length==1){gWQSagent=arguments[0]}
	wfSubDocStart();
}
function wfSaveDoc() {
	/*不做任何操作保存文档*/
	if(confirm("确定保存文档吗？")){
		try{gForm.WFFlowLogXML.value=dojox.xml.parser.innerXML(gWFLogXML)}catch(e){};
		fnResumeDisabled(); //恢复部分域的失效状态，以保证保存时值不会变为空。
		gForm["$$QuerySaveAgent"].value="(wqsWFSave)";
		gForm.submit();
		//wfSubDocEndSave();
	}
}
function wfAgreeDoc(){
	//提交前处理数据
	if(gForm.WFStatus.value==0){SubmitBefore()}
	if(confirm("您确定同意吗？")){
		if(arguments.length==1){gWQSagent=arguments[0]}
		gForm.WFTacheName.value="同意";
		wfSubDocStart();
	}
}

function wfConfirmDoc(){
	//提交前处理数据
	if(gForm.WFStatus.value==0){SubmitBefore()}
	if(confirm("您确定确认吗？")){
		if(arguments.length==1){gWQSagent=arguments[0]}
		gForm.WFTacheName.value="确认";
		wfSubDocStart();
	}
}

function wfCompleatDoc(){
	//提交前处理数据
	if(gForm.WFStatus.value==0){SubmitBefore()}
	if(confirm("您确定完成吗？")){
		if(arguments.length==1){gWQSagent=arguments[0]}
		gForm.WFTacheName.value="完成";
		wfSubDocStart();
	}
}
function wfRejectDoc(){
	if(confirm("您确定拒绝吗？")){
		if(arguments.length==1){gWQSagent=arguments[0]}
		gForm.WFTacheName.value="拒绝";
		wfSubDocStart();
	}
}
function goBak(){
	if(dojo.byId("WFIdea")){
		if(dojo.trim(dojo.byId("WFIdea").value)==""){
			dojo.byId("WFIdea").style.borderColor="red";
			dijit.byId("tabAttachContent").selectChild("tabWFIdea");
			if(!dijit.byId("expp")._showing){
				dijit.byId("expp").toggle();
			}
			alert("请您填写拒绝意见！");
			return;
		}
	}
	var idea=dojo.trim(dojo.byId("WFIdea").value);
	var link="/"+gCommonDB+"/fmWFRandomBack?OpenForm&DocID="+gCurDocID+"&TDB="+gCurDBName+"&idea="+encodeURI(idea)+"&idearid="+gIdeaID[0];
	dg.set("content","<iframe style='width:580px;height:400px;border:0px;' src='"+link+"' frameborder='0'></iframe>");
	dg.show();
}
/*
描述：
	选择部门后给页面的设置域的实际值和显示值
参数：
	e：部门树节点对象
*/
function SelectOrgDept(e){
	//fullname:部门层次名,name:部门名称
	e.sender.setValue(e.node.fullname);
	e.sender.setText(e.node.name);
}
/*
描述：
	选择部门中加入清除图标，点击清除值
参数：
	e：部门树节点对象
*/
function onCloseClick(e) {
	e.sender.setValue("");
	e.sender.setText("");
}
// -->
</script>

<script language="JavaScript" type="text/javascript">
<!-- 
document._domino_target = "_self";
function _doClick(v, o, t, h) {
  var form = document._fmWFMainFile;
  if (form.onsubmit) {
     var retVal = form.onsubmit();
     if (typeof retVal == "boolean" && retVal == false)
       return false;
  }
  var target = document._domino_target;
  if (o.href != null) {
    if (o.target != null)
       target = o.target;
  } else {
    if (t != null)
      target = t;
  }
  form.target = target;
  form.__Click.value = v;
  if (h != null)
    form.action += h;
  form.submit();
  return false;
}
// -->
</script>

<script language="JavaScript" type="text/javascript">
<!-- 
var addCell='{width: 100,headerAlign:"center",dataType:"currency",vtype:"float",editor:{type: "spinner"}}';
var year=["一","二","三","四","五","六","七","八","九","十"];
function AddCell(e){
	var cols=mini.get("BcellGoal").getColumns();
	for(t=cols.length-2;t>=2;t--){
		mini.get("BcellGoal").removeColumn(cols[t]);
	}
	if(e.value=="")return;
	for(i=0;i<parseInt(e.value);i++){
		var bCell=mini.decode(addCell);
		bCell.field="D"+i;
		bCell.header="第"+year[i]+"年";
		cols.insert(cols.length-1,bCell);
	}
	mini.get("BcellGoal").setColumns(cols);
}

function ToSave(){ 
	if($("[name=Form]").val()=="fmTemplate"){
		$("[name=Form]").val("fmWFMainFile");invest
	}
	document.forms[0].submit();
}


//提交
function wfSubmitDoc(){
	if(arguments.length==1){
		gWQSagent=arguments[0]
	}
	GetCurNo(false);
	wfSubDocStart();
}
//保存
function wfSaveDoc() {
	//saveZ();
	/*不做任何操作保存文档*/
	if(confirm("确定保存文档吗？")){
		GetCurNo(false);
		try{gForm.WFFlowLogXML.value=dojox.xml.parser.innerXML(gWFLogXML)}catch(e){};
		fnResumeDisabled(); //恢复部分域的失效状态，以保证保存时值不会变为空。
		gForm["$$QuerySaveAgent"].value="(wqsWFSave)";
		gForm.submit();
		//wfSubDocEndSave();
	}
}

//arrData:=@Unique(@Trim(@DbColumn("":"nocache";"":"";"vwProjectType";2)));
//attJsonData:="["+@If(@IsError(arrData);"";@Implode("{ \"id\": \""+arrData+"\", \"text\": \""+arrData+"\" }";","))+"]";
//拼音缩写
function PrjNameCode(e){
	mini.getbyName("PrjNameCode").setValue("#"+codefans_net_CC2PY($("[name=PrjName]").val()));
}

function PartnerGoal(e){
	
} 

function afterLoad(){
	if(DiyJs.isOpen=="2"){
	}else{
		$("[name=ExcuType]").val($("[name=ExcuName]").val());
	}
	//判断是否为新文档
	if(gIsNewDoc!=0){
		//获取单据编号
		GetCurNo(true);
	}else{
	}
	//组织机构
	try{
		ajaxOrg();
	}catch(e){}
}

//科目表列点击事件
function BcellBeginCell(e){
	if(e.record.children && e.record.children.length>0){
		e.cancel=true;
	}
}
//科目表编辑事件
var zjYear=0;
function BcellDrawCell(e){
	zjYear=mini.get("BcellGoal").getColumns().length-3;
	if(zjYear!=0){
		var iPrice=0;
		for(t=0;t<zjYear;t++){
			if(e.record["D"+t] && e.record["D"+t]!=""){
				iPrice+=parseFloat(e.record["D"+t]);
			}
		}
		e.record.PriceTotal=iPrice;
	}
}



//获取流水号
function GetCurNo(async){
	if(gIsNewDoc==0){ return }
	var intM=0;
	//var path="/"+gCurDB+"/vwGetConDKNo?openView&Count=1";
	var path="/"+gCurDB+"/agt_GetNoByView?openAgent";
	$.ajax({
		url:path,
		async:async,
		type:"post",
		data:{vName:"vwGetProjectNo"},
		success: function(data){
			if(data.trim()=="" || data.trim().indexOf("未找到文档")!=-1){
				intM=1;
			}else{
				intM=parseInt(data.trim())+1;
			}
			mini.getbyName("PrjNo").setValue(DiyJs.gCNo+"-"+intM);
			$("[name=ConNo]").val(intM);
		}
	})
}

//获取项目类型
function getExcuType(){
	var path="/"+gCurDB +"/agtGetExcuType?OpenAgent";
	$.post(path,{
	},function(data){
		var ExcuType=mini.decode(data);
		mini.getbyName("ExcuType").setData(ExcuType)
		mini.getbyName("ExcuType").on("itemclick",function(e){
			$("[name=ExcuName]").val(mini.getbyName("ExcuType").getText())
		})
	})
}

//计算预计周期
function sumDay(){
	var sDay=mini.getbyName("StartTime").getValue();
	var eDay=mini.getbyName("EndTime").getValue();
	
	if(sDay!="" && eDay!=""){
		if(sDay>eDay){
			mini.getbyName("EndTime").setValue("");
			mini.getbyName("Work").setValue("");
		}else{
			var sunDay=0;
			if(eDay-sDay==0){
				sunDay=1000*60*60*24
			}else{
				sunDay=(eDay-sDay)+(1000*60*60*24)
			}
			mini.getbyName("Work").setValue(sunDay/(1000*60*60*24));
		}
	}else{
		mini.getbyName("Work").setValue("");
	}
}

//Grid增加
function StageRow(name) {            
	var row = {};
	mini.get(name).addRow(row);
}

//Grid删除
function StageRemove(name) {
	var grid=mini.get(name); 
	var rows=grid.getSelecteds();
	grid.removeRows(rows);
}
//Grid加载
function StageLoad(name){
	mini.get(name).setData(mini.decode($("[name="+name+"]").val()));
}
//Grid保存
function StageSave(name){
	$("[name="+name+"]").val(mini.encode(mini.get(name).getData()));
}

// -->
</script>

<script language="JavaScript" type="text/javascript">
<!-- 
var deptStr="ProjectDirector,DesignDirector,PurchaseDirector,ConstructionDirector,CostDirector,MarketDirector,PlanDirector";
var deptName="项目经理,市场部接口人,资产管理部接口人,财务部接口人,行政部接口人,人力资源部接口人,总裁办公室接口人";

function onCloseClick(e) {
	var obj = e.sender;            
	obj.setText("");            
	obj.setValue("");   
}

//异步加载组织机构数据
function ajaxOrg(){
	var path="/"+gCurDB+"/agtGetUserByRole?OpenAgent";
	var nArr=deptName.split(",");
	var iArr=deptStr.split(",");
	$.each(nArr,function(k){
		$.post(path,{
			RoleName:this.toString()
		},function(data){
			if(data.indexOf(",")>-1){
				var str=mini.getbyName(iArr[k]).getValue();
				mini.getbyName(iArr[k]).loadList(mini.decode(data),"id","pid");
				mini.getbyName(iArr[k]).setValue(str.replace(/\s+/g,""));
			}
		})
	})
}

// -->
</script>
</head>
<body text="#000000" bgcolor="#FFFFFF"  style='padding:0px;width:100%;height:100%;background:#f3f3f3;'>

<form method="post" action="/OA6.1/ProjectMgr.nsf/fmWFMainFile?OpenForm&amp;Seq=1&amp;WFModule=%E9%A1%B9%E7%9B%AE%E6%A8%A1%E5%9D%97&amp;WFName=%E9%A1%B9%E7%9B%AE%E7%AB%8B%E9%A1%B9&amp;Type=ProjectInfo&amp;NodeId=AFD4E05E42337BE648257E49000B4932&amp;NodeID=AFD4E05E42337BE648257E49000B4932&amp;TabId=w9201" name="_fmWFMainFile">
<input type="hidden" name="__Click" value="0"><!--此处放工作流部分-->
<div style="display:none">
当前登录人员:Admin

<input name="CurUser" value="Admin">

<input name="WFInitiator" value="Admin">

<input name="WFTacheName" value="">

<input name="WFCurNodeID" value="">

<input name="WFPreNodeID" value="">

<input name="WFPreUser" value="">

<input name="WFWaitApproval" value="">

<input name="WFFinishApproval" value="">

<input name="AllUser" value="Admin">
2016-06-09 20:40

<input name="CurDocID" value="E361B4F83C26813A48257FCD00459514">

<input name="WFStatus" value="0">

<input name="WFRouterID" value="">

<input name="DefaultManagers" value="[管理员]">

<input name="DefaultReaders" value="[阅读]">

<input name="AllReaders" value="Admin">

<input name="WFDocLink" value="" style="width:100%">

<input name="WFFlowLogXML" value="&lt;Log/&gt;" id="WFFlowLog">

<input name="$$QuerySaveAgent" value="">

<input name="DocLock" value="0">

<input name="WFModule" value="项目模块">

<input name="WFName" value="项目立项">

<input name="DocDelete" value="">
<br>

<input name="WFDocID" value="79CBDAB3D9953F6E48257E49001135C9">

<input name="WFDebug" value="">

<input name="CatalogNo" value=";">
</div>
<script>
	var gForm=document.forms[0],
	    gCurDB = "OA6.1/ProjectMgr.nsf",
	    gCommon = "OA6.1",
	    gCommonDB = "OA6.1/HT_Common.nsf",
	    gIsNewDoc = 1,
	    gIsEditDoc = 1,
	    gInitiator="Admin",//<!--启动者-->
	    gUserCName = "Admin",//<!--当前登录用户-->
	    gCurDocID = "E361B4F83C26813A48257FCD00459514",
	    gDocKey="E361B4F83C26813A48257FCD00459514",
	    gCurDBName = "ProjectMgr.nsf",
	    gWorkFlowDB="OA6.1/HT_WorkFlow.nsf",
	    gFormulaDB="OA6.1/HT_Formula.nsf",
	    gOrgDB="HTCommon/HT_Org.nsf",
	    gWFStatus = 0,
	    gifmScroll="auto",
	    gWFModule="项目模块",
	    gFormType="fmProjectInfo",
	    gServerTime="2016-06-09 20:40:01",
	    gNoticeConfig={RTXIP:'192.168.203.146',RTXPort:'8012'},
	    WdatePicker=function(){},//时间控件函数
	    gCssBorder="1px dotted #f00",//目的是覆盖时间控件的样式
	    gWFDebug=0,//是否开启流程调试模式
	    gWFID="79CBDAB3D9953F6E48257E49001135C9",//流程文档ID
	    gArrBtns=[],
	    gCloseBtn=[
			{name:"返回",title:"返回",ico:"btn-default",clickEvent:"",align:"1"},
			{name:"查看流程图",title:"查看流程图",ico:"btn-warning",clickEvent:"goLookWorkFlow()",align:"1",isHidden:"1"},
			{name:"关闭",title:"关闭",ico:"btn-default",clickEvent:"try{top.goCloseTab('w9201',false)}catch(e){window.close()}",align:"2",isHidden:"0"}
		];
</script>

<script>
	if("Admin"!="Admin" && window.location.href.indexOf("opendocument")==-1){
		window.location.href="/OA6.1/ProjectMgr.nsf/0/E361B4F83C26813A48257FCD00459514?opendocument";
	}
</script>
<div style="width:1200px;margin:auto;padding-bottom:70px;">
<script type="text/html" id="user_tmpl">
<div class="wf-quick-link">
	<ul>
		<li><a class="o-sb-form" title="<%=PublicField.Form %>" name="gC" href="#FormMode"></a></li>
		<li><a class="o-sb-attachment" title="<%=PublicField.File%>" name="gC" href="#AttMode"></a></li>
		<li><a class="o-sb-top" title="<%=PublicField.Top %>" id="gTop"></a></li>
	</ul>
</div>
<div class="col-md-7" style="width:1200px;margin:0px auto;float:none;">
<%
	DiyJs.CurDB="OA6.1/ProjectMgr.nsf";
	DiyJs.isRead="0";
	DiyJs.isOpen="2";
	DiyJs.userRole="CN=Admin/O=HuaTeng, Admin, *, */O=HuaTeng, LocalDomainAdmins, [管理员], [阅读]";
	DiyJs.isNewDoc=1;
	DiyJs.year=2016;
	DiyJs.gCNo="20166-PD";
	DiyJs.PrjZJYear="";
	DiyJs.KMData='[{"UID":"388532164","ParentTaskUID":"-1","_pid":-1,"_id":1,"_uid":1,"_level":0,"
expanded":true,"children":[],"KMName":"上柜率
"},{"UID":"926872031","ParentTaskUID":"-1","_pid":-1,"_id":2,"_uid":2,"_level":0
,"expanded":false,"KMName":"收入
","children":[{"UID":"289383762","ParentTaskUID":"926872031","_pid":2,"_id":3,"_
uid":3,"_level":1,"KMName":"机柜租金
","expanded":false},{"UID":"972960100","ParentTaskUID":"926872031","_pid":2,"_id
":4,"_uid":4,"_level":1,"KMName":"维保收入
","expanded":false},{"UID":"210126663","ParentTaskUID":"926872031","_pid":2,"_id
":5,"_uid":5,"_level":1,"KMName":"运维收入
","expanded":false}]},{"UID":"837302394","ParentTaskUID":"-1","_pid":-1,"_id":6,
"_uid":6,"_level":0,"expanded":false,"KMName":"成本
","children":[{"UID":"199489463","ParentTaskUID":"837302394","_pid":6,"_id":7,"_
uid":7,"_level":1,"KMName":"资产折旧
","expanded":false},{"UID":"363576213","ParentTaskUID":"837302394","_pid":6,"_id
":8,"_uid":8,"_level":1,"KMName":"维保成本（含人工）
","expanded":false},{"UID":"968737981","ParentTaskUID":"837302394","_pid":6,"_id
":9,"_uid":9,"_level":1,"KMName":"运维成本（含人工）
","expanded":false},{"UID":"188272493","ParentTaskUID":"837302394","_pid":6,"_id
":10,"_uid":10,"_level":1,"KMName":"建设成本（含人工）
","expanded":false}]},{"UID":"889594675","ParentTaskUID":"-1","_pid":-1,"_id":11
,"_uid":11,"_level":0,"KMName":"项目毛利
","expanded":true},{"UID":"322093749","ParentTaskUID":"-1","_pid":-1,"_id":12,"_
uid":12,"_level":0,"KMName":"税金成本
","children":[{"UID":"665373889","ParentTaskUID":"322093749","_pid":12,"_id":13,
"_uid":13,"_level":1,"KMName":"销项税额
","expanded":false},{"UID":"730897058","ParentTaskUID":"322093749","_pid":12,"_i
d":14,"_uid":14,"_level":1,"KMName":"可抵扣进项
","expanded":false},{"UID":"248064587","ParentTaskUID":"322093749","_pid":12,"_i
d":15,"_uid":15,"_level":1,"KMName":"应交增值税
","expanded":false},{"UID":"369781177","ParentTaskUID":"322093749","_pid":12,"_i
d":16,"_uid":16,"_level":1,"KMName":"增值税附加
","expanded":false}],"expanded":true},{"UID":"638936752","ParentTaskUID":"-1","_
pid":-1,"_id":17,"_uid":17,"_level":0,"KMName":"项目利润
","children":[{"UID":"994867999","ParentTaskUID":"638936752","_pid":17,"_id":18,
"_uid":18,"_level":1,"KMName":"利润率
","expanded":false},{"UID":"478629242","ParentTaskUID":"638936752","_pid":17,"_i
d":19,"_uid":19,"_level":1,"KMName":"投资回报率
","expanded":false}],"expanded":true}]';
	DiyJs.FYData='[{"UID":"199342459","ParentTaskUID":"-1","_pid":-1,"_id":1,"_uid":1,"_level":0,"
_state":"added","FYName":"房屋租赁费(建设期)
"},{"UID":"611666816","ParentTaskUID":"-1","_pid":-1,"_id":2,"_uid":2,"_level":0
,"_state":"added","FYName":"土建费
"},{"UID":"965890683","ParentTaskUID":"-1","_pid":-1,"_id":3,"_uid":3,"_level":0
,"_state":"added","FYName":"设备采购费
"},{"UID":"997882126","ParentTaskUID":"-1","_pid":-1,"_id":4,"_uid":4,"_level":0
,"_state":"added","FYName":"机房装修费
"},{"UID":"318035339","ParentTaskUID":"-1","_pid":-1,"_id":5,"_uid":5,"_level":0
,"_state":"added","FYName":"设施转让费
"},{"UID":"441454492","ParentTaskUID":"-1","_pid":-1,"_id":6,"_uid":6,"_level":0
,"_state":"added","FYName":"其他"}]';
	
	DiyJs.gForm=document.forms[0];
	DiyJs.gCurDB="OA6.1/ProjectMgr.nsf";
	DiyJs.curDocId="E361B4F83C26813A48257FCD00459514";
	DiyJs.FileArr=[
		{
			id:"attGG_att",
			title:PublicField.AttTitle,
			btn:{upId:"jsUpGG",editId:"",delId:"jsReGG"},
			columns:"docid:'5',num:'10',showname:'40',user:'15',time:'15',size:'15'",
			colHeaders:"'"+PublicField.AttCol1+"','"+PublicField.AttCol2+"','"+PublicField.AttCol3+"','"+PublicField.AttCol4+"','"+PublicField.AttCol5
				+"','"+PublicField.AttCol6+"'",
			imageZipServer:false
		}
	];
%>
<style>
	
	#tab .td_left{
		width:150px;
	}
	#tab .td_right{
		width:250px;
	}
	br{
		display:none;
	}
</style>
<div style="display:none">
	标题：
<input name="Title" value="项目立项" title="姓名">
<input name="PrjID" value="E361B4F83C26813A48257FCD00459514"><tt>
<input name="CusId" value=""></tt><tt>
<input name="FormTitle" value="项目立项" title="姓名"></tt>
  阶段性数据：
		
<textarea name="StageGoal" rows="7" cols="50"></textarea>

  合作数据：
		
<textarea name="PartnerGoal" rows="7" cols="50"></textarea>

  科目数据：
		
<textarea name="BcellGoal" rows="7" cols="50"></textarea>

  费用数据：
		
<textarea name="PrjZTGoal" rows="7" cols="50"></textarea>

  材料数据：
		
<textarea name="ClGoal" rows="7" cols="50"></textarea>

本文档流水号：
<input name="ConNo" value="">
</div>
<!--此注释不允许删除读取字段用-->
<div class="col-md-7" name="FormMode" id="FormMode" style="width:1200px;margin:20px auto;float:none;">
    <div class="widget-container fluid-height col-md-7-k" style="height:auto;border-radius:4px;">
	<div class="mbox-header" >
		<span class="form-title" style="height:100%;line-height:45px;">
			<i class="o-host-application" style="background-position: -0px -20px;"></i>
			项目启动
		</span>
	</div>
	<div class="mbox-body"  style="height:100%;padding:10px;">
<fieldset style="width:99%;margin:auto;">
<legend >基本信息</legend>
<table style="width:97%;margin-top:5px;" id="tab">
	<tr>
	<td class="td_left" ><%=PublicField.MakeName %>：</td>
	<td class="td_right" >
<input name="MakeName" value="Admin"  class="mini-textbox"  allowInput="false" required="true"  style="width:99%;" title="制单人"></td>
	<td class="td_left" ><%=PublicField.MakeTime %>：</td>
	<td class="td_right" >
<input name="MakeTime" value="2016-06-09"  class="mini-textbox"  allowInput="false" required="true" style="width:99%;" title="制单时间"></td>
	<td class="td_left" ><%=PublicField.PrjNo%>：</td>
	<td class="td_right">
<input name="PrjNo" value="" class="mini-textbox" allowInput="false" required="true"  emptyText="项目编号自动生成"    style="width:99%;" title="项目编号"></td>
</tr>
<tr>
	<td class="td_left" ><%=PublicField.PrjName%>：</td>
	<td class="td_right">
<input name="PrjName" value=""  class="mini-textbox"  onvaluechanged='PrjNameCode' emptyText='请输入项目名称' required="true" text='' style="width:99%;" title="项目名称"></td>
	<td class="td_left" >项目简称：</td>
	<td class="td_right">
<input name="PrjNameCode" value=""  class="mini-textbox" allowInput="false" required="true"  style="width:99%;" title="项目简称"></td>
	<td class="td_left" >项目类型：</td>
	<td class="td_right" >
<input name="PrjType" value="" class="mini-combobox" emptyText="下拉框选择" allowInput="false" required="true" data='[{id:"园林建设",text:"园林建设"},{id:"定制机房",text:"定制机房"}]' style="width:99%;" title="项目类型"></td>
</tr>
<tr>
	<td class="td_left" >项目属性：</td>
	<td class="td_right" >
<input name="PrjProperty" value="" class="mini-combobox" emptyText="下拉框选择" allowInput="false" required="true" data='[{id:"咨询",text:"咨询"},{id:"设计",text:"设计"},{id:"建设",text:"建设"},{id:"运营（销售）",text:"运营（销售）"},{id:"运维",text:"运维"}]' style="width:99%;" title="PrjProperty"></td>
	<td class="td_left" >项目地点：</td>
	<td class="td_right" >
<input name="PrjAddress" value=""  class="mini-textbox" required="true"  style="width:99%;" title="项目地点"></td>
	<td class="td_left" colspan="2"></td>
</tr>
</table>
</fieldset>
<fieldset style="width:99%;margin:auto;">
<legend >预期总目标</legend>
<table style="width:97%;margin-top:5px;" id="tab">
<tr>
	<td class="td_left"><%=PublicField.ExpeceStartTime%>预计开始时间：</td>
	<td  class="td_right">
<input name="StartTime" value=""  class="mini-datepicker" onvaluechanged='sumDay()'  allowInput='false' required="true"  emptyText="请选择开始时间"  style="width:99%;" title="预计开始时间"></td>
	<td class="td_left"><%=PublicField.ExpeceEndTime%>预计结束时间：</td>
	<td class="td_right">
<input name="EndTime" value=""  class="mini-datepicker"  onvaluechanged='sumDay()' allowInput='false' required="true"  emptyText="请选择结束时间"  style="width:99%;" title="预计结束时间"></td>
	<td class="td_left"><%=PublicField.ExpeceWork %>预计工期：</td>
	<td class="td_right">
<input name="Work" value="" class="mini-textbox"  allowInput="false"  emptyText="自动计算工期" style="width:99%;" title="预计工期"></td>
</tr>
<tr>
	<td class="td_left" >预期总收入：</td>
	<td class="td_right" >
<input name="Income" value=""  class="mini-textbox"  style="width:99%;" title="预期总收入"></td>
	<td class="td_left" colspan="4"></td>
</tr>
</table>
</fieldset>
<!--此注释不允许删除读取字段用-->
</div></div></div>
<!--此注释不允许删除读取字段用-->
<div class="col-md-7" name="FormMode" id="FormMode" style="width:1200px;margin:20px auto;float:none;">
    <div class="widget-container fluid-height col-md-7-k" style="height:auto;border-radius:4px;">
	<div class="mbox-header" >
		<span class="form-title" style="height:100%;line-height:45px;">
			<i class="o-host-application" style="background-position: -0px -20px;"></i>
			项目组织
		</span>
	</div>
	<div class="mbox-body"  style="height:100%;padding:10px;">
<div style="display:none">
	域名：
<input name="deptStr" value="ProjectDirector,DesignDirector,PurchaseDirector,ConstructionDirector,CostDirector,MarketDirector,PlanDirector">
</div>
<table style="width:100%;margin:auto;margin-top:5px;" id="tab">
<tr>
	<td class="td_left"  ><%=PublicField.ProjectDirector %>：</td>
	<td class="td_right" >
		
<input name="ProjectDirector" value="" class="mini-treeselect" multiSelect="true"  valueField="name" textField="name"   style="width:99%;" showClose="true" oncloseclick="onCloseClick"  title="姓名">
	</td>
	<td class="td_left" >市场部接口人：</td>
	<td class="td_right"  >
		
<input name="DesignDirector" value="" class="mini-treeselect" multiSelect="true"  valueField="name" textField="name"   style="width:99%;" showClose="true" oncloseclick="onCloseClick"  title="姓名">
	</td>
	<td class="td_left" >资产管理部接口人：</td>
	<td class="td_right" >
		
<input name="PurchaseDirector" value="" class="mini-treeselect" multiSelect="true"  valueField="name" textField="name"   style="width:99%;" showClose="true" oncloseclick="onCloseClick"  title="姓名">
	</td>
</tr>
<tr>
	<td class="td_left" >财务部接口人：</td>
	<td class="td_right" >
		
<input name="ConstructionDirector" value="" class="mini-treeselect" multiSelect="true"  valueField="name" textField="name"   style="width:99%;" showClose="true" oncloseclick="onCloseClick"  title="姓名">
	</td>
	<td class="td_left" >行政部接口人：</td>
	<td class="td_right" >
		
<input name="CostDirector" value="" class="mini-treeselect" multiSelect="true"  valueField="name" textField="name"   style="width:99%;" showClose="true" oncloseclick="onCloseClick"  title="姓名">
	</td>
	<td class="td_left" >人力资源部接口人：</td>
	<td class="td_right">
		
<input name="MarketDirector" value="" class="mini-treeselect" multiSelect="true"  valueField="name" textField="name"   style="width:99%;" showClose="true" oncloseclick="onCloseClick"  title="姓名">
	</td>
</tr>
<tr>
	<td class="td_left" >总裁办公室接口人：</td>
	<td class="td_right" >
		
<input name="PlanDirector" value="" class="mini-treeselect" multiSelect="true"  valueField="name" textField="name"   style="width:99%;" showClose="true" oncloseclick="onCloseClick"  title="姓名">
	</td>
	<td class="td_left" ></td>
	<td class="td_right" >
		
	</td>
	<td class="td_left" ></td>
	<td class="td_right" >
		
	</td>
</tr>
</table>
<!--此注释不允许删除读取字段用-->
</div></div></div>


<div class="col-md-7" name="AttMode" id="AttMode"  style="width:1200px;margin:20px auto;float:none;">
    <div class="widget-container fluid-height col-md-7-k" style="height:auto;border-radius:4px;">
	<div class="mbox-header"  style="border-bottom:2px solid #58B358">
		<span class="form-title" style="height:100%;line-height:45px;" >
			<i class="o-view-attachment" style="background-position: -0px -180px;"></i>
			<%=PublicField.AttMode %>
		</span>
	</div>
	<div class="mbox-body"  style="height:100%;padding:10px;">
		<table cellspacing="1" cellpadding="1" style="width:px;border:0;margin:0 auto">
			<% for(var i=0;i<DiyJs.FileArr.length;i++){ %>
                		<tr>
				<td colspan="4" class="td_left">
					<div id="<%=DiyJs.FileArr[i].id %>" style="margin-top:5px;" class="att_att" 
						columns=<%=DiyJs.FileArr[i].columns %> 
						colHeaders="<%=DiyJs.FileArr[i].colHeaders %>" >
						<div class='mini-toolbar toolbar'>
							<div class='toolbar-title' style="line-height:30px;">
							&nbsp;<%=DiyJs.FileArr[i].title %>
							</div>
							<div class='toolbar-btn'>
								<span id=<%=DiyJs.FileArr[i].btn.upId %>></span>
								<div style='display:inline-block'>
									<a class="mini-button <%=DiyJs.FileArr[i].btn.delId %>"
								          plain="false"
									   id=<%=DiyJs.FileArr[i].btn.delId %> iconCls="icon-remove" 
									   href="javascript:goDelAttachFile('<%=DiyJs.FileArr[i].id %>');" ><%=PublicField.DelFile %>
									</a>
							</div>
						</div>
					</div>
				</div>
				</td>
				</tr>
      	 		<% } %>
		</table>
    	</div>
   </div>
</div>

<style>
td .tdIdea{
	text-align:center;
}
#showWFIdea .tdIdea {
letter-spacing: 0px;<tt>&nbsp;</tt>}
</style>
<div class="col-md-7" id="SignMode" name="SignMode" style="width:1200px;margin:20px auto;float:none;display:none">
    <div class="widget-container fluid-height col-md-7-k" style="height:auto;border-radius:4px;">
	<div class="mbox-header"   style="border-bottom:2px solid #CE433F">
		<span class="form-title" style="height:100%;line-height:45px;" >
			<i class="o-view-opinion" style="background-position: -20px -180px;"></i>
			<%=PublicField.SignMode %>
		</span>
	</div>
	<div class="mbox-body"  style="height:100%;padding:10px;">
		<table cellspacing="1" cellpadding="1" style="width:99%;border:0;margin:0 auto">
			<tr style="border-top:0;border-bottom:0">
			<td colspan="4" style="border-top:0;border-bottom:0">
				<table style="width:99%;border:0;margin:0 auto;color:#000;font-size:16px;border:0;border-bottom:1px solid #ccc">
					<tr style="border:0;height:35px">
						<td style="width:150px;text-align:center;border:0"><%=PublicField.SignCol1 %></td>
						<td style="text-align:center;border:0"><%=PublicField.SignCol2 %></td>
						<td style="width:150px;text-align:center;border:0"><%=PublicField.SignCol3 %></td>
						<td style="width:150px;text-align:center;border:0"><%=PublicField.SignCol4 %></td>
					</tr>
				</table>
			</td>
			</tr>
			<tr style="border-top:0">
			<td colspan="4" style="border-top:0;text-align:center;" id="ideaList">
				<textarea name="ID_ideaArea" title="<%=PublicField.OpTitle %>" style="width:85%;margin:auto;margin-top:10px;margin-bottom:10px;" class="mini-textarea" emptyText="<%=PublicField.OpMsg %>"></textarea>
			</td>
			</tr>
		</table>
    	</div>
   </div>
</div>

<div class="host-footer" style="z-index:9999;">
        <div class="footer-bg"></div>
        <div class="footer-area">
			<div class="pull-left" id="btnContL">
			</div>
			<div class="pull-right" id="btnContR">
			</div>
        </div>
</div>
</script>
<div id="SubBody"></div>
<script type="text/javascript">
	var DiyJs={webDebug:0};
	var objAttacheData={};
	objAttacheData.UN=encodeURI("Admin"); //当前用户名
	objAttacheData.PID="E361B4F83C26813A48257FCD00459514"; //附件所属文档标识
	objAttacheData.DBP="OA6.1/HT_Common.nsf"; //上传数据库路径
	objAttacheData.PDB="OA6.1/ProjectMgr.nsf"; //当前数据库路径
	objAttacheData.CatalogNo=";"; //附件目录编码
	objAttacheData.PrjID="E361B4F83C26813A48257FCD00459514"; //项目ID
	//将miniui的固定样式重命名，避免miniui解析，等待流程中处理各个字段的状态后，再重置回来。非流程时无需此操作。
	var html=baidu.template($("#user_tmpl").html().replace(/mini-/g,"miniui-"),[]);
	$('#SubBody').html(html);
</script>
</div>

<link href='/miniui/scripts/miniui/themes/default/miniui-lg.css' rel='stylesheet' type='text/css'/>
<link href='/miniui/scripts/miniui/themes/icons.css' rel='stylesheet' type='text/css'/>
<link href='/miniui/scripts/miniui/themes/metro/skin.css' rel='stylesheet' type='text/css'/>
<script src='/miniui/scripts/miniui/miniui.js' type='text/javascript'></script>
<link href='/ht/css/upload.css' rel='stylesheet' type='text/css'/>
<link href='/ht/swfupload/css/swfupload.css' rel='stylesheet' type='text/css'/>
<script src='/ht/swfupload/swfupload.package.js' type='text/javascript'></script>
<script src='/ht/swfupload/handlers.js' type='text/javascript'></script>
<script src='/ht/js/upLoad.js' type='text/javascript'></script>
<script src='/HTCommon/HT_Common.nsf/pgOrgSelect.js' type='text/javascript'></script>
<script src="/ht/js/jquery.timers-1.2.js" type="text/javascript"></script>
<link href="/ht/gritter/jquery.gritter.css" rel="stylesheet" type="text/css"/>
<script src="/ht/gritter/jquery.gritter.min.js" type="text/javascript"></script>

<input name="Query_String_Decoded" type="hidden" value="OpenForm&amp;WFModule=项目模块&amp;WFName=项目立项&amp;Type=ProjectInfo&amp;NodeId=AFD4E05E42337BE648257E49000B4932&amp;NodeID=AFD4E05E42337BE648257E49000B4932&amp;TabId=w9201">
<input name="Server_Name" type="hidden" value="oa.huatengoa.com">
<input name="$V2AttachmentOptions" type="hidden" value="0">
<input name="Remote_Addr" type="hidden" value="61.164.212.242">
<input name="$$Common" type="hidden" value="OA6.1">
<input name="$$CommonDB" type="hidden" value="OA6.1/HT_Common.nsf">
<input name="$$WorkFlowDB" type="hidden" value="OA6.1/HT_WorkFlow.nsf">
<input name="$$FormulaDB" type="hidden" value="OA6.1/HT_Formula.nsf">
<input name="$$OrgDB" type="hidden" value="HTCommon/HT_Org.nsf">
<input name="$$RightDB" type="hidden" value="OA6.1/HT_Right.nsf">
<input name="FormType" type="hidden" value="ProjectInfo">
<input name="CurUserName" type="hidden" value="Admin">
<input name="CreateDate" type="hidden" value="2016-06-09 20:40">
<input name="NodeID" type="hidden" value="AFD4E05E42337BE648257E49000B4932">
<input name="NodeID" type="hidden" value="AFD4E05E42337BE648257E49000B4932">
<input name="DefaultRole" type="hidden" value="">
<input name="DefaultPerson" type="hidden" value=""></form>
</body>
</html>
